home *** CD-ROM | disk | FTP | other *** search
/ Collection of Internet / Collection of Internet.iso / faq / sci / cryptogr / part07 < prev    next >
Internet Message Format  |  1994-04-03  |  5KB

  1. Path: bloom-beacon.mit.edu!senator-bedfellow.mit.edu!faqserv
  2. From: crypt-comments@math.ncsu.edu
  3. Newsgroups: sci.crypt,talk.politics.crypto,sci.answers,news.answers,talk.answers
  4. Subject: Cryptography FAQ (07/10: Digital Signatures)
  5. Supersedes: <cryptography-faq/part07_763480846@rtfm.mit.edu>
  6. Followup-To: poster
  7. Date: 3 Apr 1994 16:40:08 GMT
  8. Organization: The Crypt Cabal
  9. Lines: 83
  10. Approved: news-answers-request@MIT.Edu
  11. Expires: 8 May 1994 16:39:37 GMT
  12. Message-ID: <cryptography-faq/part07_765391177@rtfm.mit.edu>
  13. References: <cryptography-faq/part01_765391177@rtfm.mit.edu>
  14. Reply-To: crypt-comments@math.ncsu.edu
  15. NNTP-Posting-Host: bloom-picayune.mit.edu
  16. X-Last-Updated: 1993/10/10
  17. Originator: faqserv@bloom-picayune.MIT.EDU
  18. Xref: bloom-beacon.mit.edu sci.crypt:16022 talk.politics.crypto:4163 sci.answers:1048 news.answers:17251 talk.answers:193
  19.  
  20. Archive-name: cryptography-faq/part07
  21. Last-modified: 93/05/04
  22.  
  23. This is the seventh of ten parts of the sci.crypt FAQ. The parts are
  24. mostly independent, but you should read the first part before the rest.
  25. We don't have the time to send out missing parts by mail, so don't ask.
  26. Notes such as ``[KAH67]'' refer to the reference list in the last part.
  27.  
  28. The sections of this FAQ are available via anonymous FTP to rtfm.mit.edu 
  29. as /pub/usenet/news.answers/cryptography-faq/part[xx]. The Cryptography 
  30. FAQ is posted to the newsgroups sci.crypt, talk.politics.crypto, 
  31. sci.answers, and news.answers every 21 days.
  32.  
  33.  
  34.  
  35. Contents:
  36.  
  37. 7.1. What is a one-way hash function?
  38. 7.2. What is the difference between public, private, secret, shared, etc.?
  39. 7.3. What are MD4 and MD5?
  40. 7.4. What is Snefru?
  41.  
  42.  
  43. 7.1. What is a one-way hash function?
  44.  
  45.   A typical one-way hash function takes a variable-length message and
  46.   produces a fixed-length hash. Given the hash it is computationally
  47.   impossible to find a message with that hash; in fact one can't
  48.   determine any usable information about a message with that hash, not
  49.   even a single bit. For some one-way hash functions it's also
  50.   computationally impossible to determine two messages which produce the
  51.   same hash.
  52.  
  53.   A one-way hash function can be private or public, just like an
  54.   encryption function. Here's one application of a public one-way hash
  55.   function, like MD5 or Snefru. Most public-key signature systems are
  56.   relatively slow. To sign a long message may take longer than the user
  57.   is willing to wait. Solution: Compute the one-way hash of the message,
  58.   and sign the hash, which is short. Now anyone who wants to verify the
  59.   signature can do the same thing.
  60.  
  61.   Another name for one-way hash function is message digest function.
  62.  
  63. 7.2. What is the difference between public, private, secret, shared, etc.?
  64.  
  65.   There is a horrendous mishmash of terminology in the literature for a
  66.   very small set of concepts. Here are the concepts: (1) When an
  67.   algorithm depends on a key which isn't published, we call it a private
  68.   algorithm; otherwise we call it a public algorithm. (2) We have
  69.   encryption functions E and decryption functions D, so that D(E(M)) = M
  70.   for any message M. (3) We also have hashing functions H and
  71.   verification functions V, such that V(M,X) = 1 if and only if X = H(M).
  72.  
  73.   A public-key cryptosystem has public encryption and private
  74.   decryption. Checksums, such as the application mentioned in the
  75.   previous question, have public hashing and public verification.
  76.   Digital signature functions have private hashing and public
  77.   verification: only one person can produce the hash for a message,
  78.   but everyone can verify that the hash is correct.
  79.  
  80.   Obviously, when an algorithm depends on a private key, it's meant to
  81.   be unusable by anyone who doesn't have the key. There's no real
  82.   difference between a ``shared'' key and a private key: a shared key
  83.   isn't published, so it's private. If you encrypt data for a friend
  84.   rather than ``for your eyes only'', are you suddenly doing
  85.   ``shared-key encryption'' rather than private-key encryption? No.
  86.  
  87. 7.3. What are MD4 and MD5?
  88.  
  89.   MD4 and MD5 are message digest functions developed by Ron Rivest.
  90.   Definitions appear in RFC 1320 and RFC 1321 (see part 10). Code is
  91.   available from [FTPMD].
  92.  
  93.   Note that a transcription error was found in the original MD5 draft
  94.   RFC. The corrected algorithm should be called MD5a, though some
  95.   people refer to it as MD5.
  96.  
  97. 7.4. What is Snefru?
  98.  
  99.   Snefru is a family of message digest functions developed by Ralph
  100.   Merkle. Snefru-8 is an 8-round function, the newest in the family.
  101.   Definitions appear in Merkle's paper [ME91a]. Code is available from
  102.   [FTPSF].
  103.